#ifndef _IP_H
#define _IP_H

struct KernelResponse cmdAddRule(void) ;

struct KernelResponse getAllFilterRules(void) ;

struct KernelResponse delFilterRule(char *name,int len);
struct KernelResponse changeDefault(int df);
int showRules(struct IPRule *rules, int len);
void printLine(void);

int IPstr2IPint(const char *ipStr, unsigned int *ip, unsigned int *mask);
int IPint2IPstr(unsigned int ip, unsigned int mask, char *ipStr);
int IPint2IPstrNoMask(unsigned int ip, char *ipStr);
int IPint2IPstrWithPort(unsigned int ip, unsigned short port, char *ipStr) ;
#endif